Version

CopyTo(NumericGaugeToolTickmark[],Int32) Method

Copies the elements of the ICollection to an System.Array, starting at a particular System.Array index.
Syntax
'Declaration
 
Public Overloads Sub CopyTo( _
   ByVal array() As NumericGaugeToolTickmark, _
   ByVal arrayIndex As Integer _
) 
public void CopyTo( 
   NumericGaugeToolTickmark[] array,
   int arrayIndex
)

Parameters

array
The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection<T>. The System.Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.
System.ArgumentOutOfRangeExceptionarrayIndex is less than 0.
System.ArgumentExceptionarray is multidimensional.-or-The number of elements in the source System.Collections.Generic.ICollection is greater than the available space from arrayIndex to the end of the destination array.-or-Type T cannot be cast automatically to the type of the destination array.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also